import instance from "@/http";

// 课程列表
export  const courseList = ()=>instance.get("/course/list")

//  课程分页
export const coursePage = (searchForm)=>instance.post("/course/page",searchForm)

// 添加或编辑课程信息
export const addOrUpdateCourse = (form)=>instance.post("/course/addOrUpdate",form)

// 删除课程信息  逻辑删除  手动维护
export const deleteCourse = (id)=>instance.delete("/course/delete/"+id)
// 改变课程状态
export const changeCourseState = (params)=>instance.put("/course/changeState",params)
